import request from '@/utils/request'

// 查询事件管理列表
export function listEventmanage(query) {
  return request({
    url: '/manage/eventmanage/list',
    method: 'get',
    params: query
  })
}

// 查询事件管理详细
export function getEventmanage(eventId) {
  return request({
    url: '/manage/eventmanage/' + eventId,
    method: 'get'
  })
}

// 新增事件管理
export function addEventmanage(data) {
  return request({
    url: '/manage/eventmanage',
    method: 'post',
    data: data
  })
}

// 修改事件管理
export function updateEventmanage(data) {
  return request({
    url: '/manage/eventmanage',
    method: 'put',
    data: data
  })
}

// 删除事件管理
export function delEventmanage(eventId) {
  return request({
    url: '/manage/eventmanage/' + eventId,
    method: 'delete'
  })
}
